<?php

require_once 'User.class.php';

class Twitt{
	protected $in_reply_to_user_id_str;
	protected $retweet_count;
	protected $in_reply_to_status_id;
	protected $id_str;
	protected $contributors;
	protected $truncated;
	protected $geo;
	protected $coordinates;
	protected $favorited;
	protected $user;
	protected $in_reply_to_user_id;
	protected $in_reply_to_screen_name;
	protected $possibly_sensitive;
	protected $retweeted;
	protected $source;
	protected $in_reply_to_status_id_str;
	protected $id;
	protected $place;
	protected $text;
	protected $created_at;


	public function __construct($twitObj){
		$this->in_reply_to_user_id_str = $twitObj['in_reply_to_user_id_str'];
		$this->retweet_count = $twitObj['retweet_count'];
		$this->in_reply_to_status_id = $twitObj['in_reply_to_status_id'];
		$this->id_str = $twitObj['id_str'];
		$this->contributors = $twitObj['contributors'];
		$this->truncated = $twitObj['truncated'];
		$this->geo = $twitObj['geo'];
		$this->coordinatesd = $twitObj['coordinates'];
		$this->favorited = $twitObj['favorited'];
		$this->in_reply_to_user_id = $twitObj['in_reply_to_user_id'];
		$this->in_reply_to_screen_name = $twitObj['in_reply_to_screen_name'];
		$this->possibly_sensitive = $twitObj['possibly_sensitive'];
		$this->retweeted = $twitObj['retweeted'];
		$this->source = $twitObj['source'];
		$this->id = $twitObj['id'];
		$this->place = $twitObj['place'];
		$this->text = $twitObj['text'];
		$this->created_at = $twitObj['created_at'];
		$this->user = new User($twitObj['user']);
	}

	public function __get($key) {
		return $this->$key;
	}
	public function __set($key, $value) {
		$this->$key = $value;
	}
}